---
- name: Create a k8s Secret
  community.okd.k8s:
    api_key: "{{ communishift_ocp_api_token }}"
    host: "{{ communishift_ocp_api_host }}"
    state: present
    definition:
      apiVersion: v1
      kind: Secret
      metadata:
        name: "{{ communishift_project_name }}-efs-credentials"
        namespace: "{{ communishift_project_name }}"
      data:
        efs_filesystem_id: "{{ filesystem_id | b64encode }}"
        efs_accesspoint_id: "{{ accesspoint_id | b64encode }}"
